package io.zhaocy;

/**
 * Description:
 * @Author: genezhao
 * @Date: 2018-07-05
 */
public class SeqThread extends Thread{

    private SeqCount seqCount;

    public SeqThread(SeqCount seqCount) {
        this.seqCount = seqCount;
    }

    @Override
    public void run() {
        for (int i = 0; i < 300; i++) {
            System.out.println(Thread.currentThread().getName() + " seqCount:" + seqCount.nextSeq());
        }
    }
}
